<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery-3.3.1.js"></script>
	<link rel="stylesheet" type="text/css" href="../static/css/style.css">
	<script type="text/javascript" src="../static/js/script.js"></script> 
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery-3.3.1.js"></script>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/static/css/bootstrap.min.css" />
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/bootstrap.min.js"></script>
	<link rel="shortcut icon" href="../img/favico.ico" type="image/x-icon">
</head>
<body>
	<div id="total" style="background: url(../img/bk.jpg);background-size:cover;width: 100%;height: 1000px;">
		<h1 style="padding-top: 50px;text-align: center;color: #FFFFFF;">连连看大闯关</h1>
		<h3 style="padding-top: 20px;text-align: center;color: #FFFFFF;">挑战者：<%=request.getParameter("user") %></h3>
	<div id="container" style="margin-top: 10px;">

		<script type="text/javascript">
			document.write('<ul>');
			for (var i = 0;i <= 35;i ++) {
				document.write('<li>');
				document.write('<a href="javascript:showImage(' + i + ')">');
				document.write('<img src="../img/game/img0.gif" id="img' + i + '">');			
				document.write('</a>');
				document.write('</li>');
			}
			document.write('</ul>');
		</script>

		<input id="startBtn" class="btn btn-primary" type="button" value="单击开始"  onclick="init();" style="width:100px;color:#fff">
		<input id="outBtn" class="btn btn-primary" type="button" value="单击退出"  style="width:100px;color:#fff">

		<ul>
			<li><img src="../img/game/img1.gif" alt=""></li>
			<li><img src="../img/game/img2.gif" alt=""></li>
			<li><img src="../img/game/img3.gif" alt=""></li>
			<li><img src="../img/game/img4.gif" alt=""></li>
			<li><img src="../img/game/img5.gif" alt=""></li>
			<li><img src="../img/game/img6.gif" alt=""></li>
			<li><img src="../img/game/img7.gif" alt=""></li>
			<li><img src="../img/game/img8.gif" alt=""></li>
			<li><img src="../img/game/img9.gif" alt=""></li>
			<li><img src="../img/game/img10.gif" alt=""></li>
			<li><img src="../img/game/img11.gif" alt=""></li>
			<li><img src="../img/game/img12.gif" alt=""></li>
			<li><img src="../img/game/img13.gif" alt=""></li>
			<li><img src="../img/game/img14.gif" alt=""></li>
			<li><img src="../img/game/img15.gif" alt=""></li>
			<li><img src="../img/game/img16.gif" alt=""></li>
			<li><img src="../img/game/img17.gif" alt=""></li>
			<li><img src="../img/game/img18.gif" alt=""></li>
		</ul>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		$("#outBtn").click(function(){
			location.href="../static/jsp/main.jsp?code="+<%=request.getParameter("code")%>+"&user="+"<%=request.getParameter("user")%>";
		});
	});
</script>
</body>
</html>